<!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=CTNZCnWI1faDmbyMNmxkdAugZRTaU3WQ"></script> -->
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">用户名:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="{" type="text" value="{$row.username}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile"  class="form-control" name="row[mobile]" type="text" value="{$row.mobile}">
        </div>
    </div>
	<div class="form-group" >
	    <label class="control-label col-xs-12 col-sm-2">员工类型:</label>
	    <div class="col-xs-12 col-sm-8" >
	        <input id="c-type" data-rule="required" data-source='[{"id":"2","title":"集成员工"},{"id":"1","title":"普通员工"}]' data-field="title" class="form-control selectpage" name="row[type]" type="text" value="{$row.type}" data-pagination="false">
	    </div>
	</div>
    <div class="form-group">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">
                {:build_radios('row[status]', ['1'=>__('Normal'), '0'=>__('Hidden')], $row['status'])}
            </div>
        </div>
    </div>
	<div class="form-group">
	    <div class="form-group">
	        <label class="control-label col-xs-12 col-sm-2">是否可以领取积分:</label>
	        <div class="col-xs-12 col-sm-8">
	            {:build_radios('row[receive]', ['1'=>__('是'), '0'=>__('否')], $row['receive'])}
	        </div>
	    </div>
	</div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div> 
</form>
<style>
    .col-sm{
        width: 0%;
        top: 4px;
    }
    #l-map{height:450px;width:100%;}
    #r-result{width:100%; position: absolute; top: 10px; left: 10px}
    #maps{position: relative}
</style>
